package ioc;

/**
 * @program: spring-demo1
 * @author: JCM
 * @create: 2023-06-11 13:00
 * @description:
 **/
public class Framework {
    private Bottom bottom;

    public Framework(Bottom bottom) {
        this.bottom = bottom;
    }

    public void init() {
        // 依赖于底盘
        System.out.println("车身");
        bottom.init();
    }
}
